//
//  SoundTools.h
//  标题按钮
//
//  Created by 李贤立 on 16/5/23.
//  Copyright © 2016年 李贤立. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>

#define MAX_RECORD_DURATION 60.0
#define WAVE_UPDATE_FREQUENCY   0.1
#define SILENCE_VOLUME   45.0
#define SOUND_METER_COUNT  6
#define HUD_SIZE  320.0

@class SoundTools;
@protocol SoundToolsDelegate <NSObject>

- (void)recordArcView:(SoundTools *)arcView voiceRecorded:(NSString *)recordPath length:(float)recordLength;

@end

@interface SoundTools : UIView<AVAudioRecorderDelegate>
@property(weak, nonatomic) id<SoundToolsDelegate> delegate;
- (void)startForFilePath:(NSString *)filePath;
- (void)commitRecording;
@end
